#use this to build spacedock in linux

CC=g++
CFLAGS=-c -Wall
LDFLAGS=-l glut

SOURCES= main.cpp ../chipmunk/chipmunk.cpp ../chipmunk/cpBB.cpp ../chipmunk/cpHashSet.cpp ../chipmunk/cpShape.cpp ../chipmunk/cpVect.cpp ../chipmunk/cpArbiter.cpp ../chipmunk/cpBody.cpp ../chipmunk/cpJoint.cpp ../chipmunk/cpSpace.cpp ../chipmunk/cpArray.cpp ../chipmunk/cpCollision.cpp ../chipmunk/cpPolyShape.cpp ../chipmunk/cpSpaceHash.cpp background.cpp block.cpp boosters.cpp bullet.cpp camera.cpp game.cpp graphics.cpp gun.cpp input.cpp laser.cpp laserBeam.cpp ship.cpp 
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=spacedockgame

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@; rm *.o ../chipmunk/*.o

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

